<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>ARWrapper: include/ARWrapper/ARController.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">ARWrapper
   </div>
   <div id="projectbrief">Provides a C++ wrapper around ARToolKit and exposes a C and JNI API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_07a0c5f21beb9b236aa4df3f5a3f68d1.html">ARWrapper</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ARController.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_a_r_controller_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> *  ARController.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *  ARToolKit5</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *  A C++ class encapsulating core controller functionality of ARToolKit.</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *  This file is part of ARToolKit.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *  ARToolKit is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *  it under the terms of the GNU Lesser General Public License as published by</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *  the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *  (at your option) any later version.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *  ARToolKit is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *  GNU Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *  You should have received a copy of the GNU Lesser General Public License</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *  along with ARToolKit.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *  As a special exception, the copyright holders of this library give you</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> *  permission to link this library with independent modules to produce an</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> *  executable, regardless of the license terms of these independent modules, and to</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> *  copy and distribute the resulting executable under terms of your choice,</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> *  provided that you also meet, for each linked independent module, the terms and</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> *  conditions of the license of that module. An independent module is a module</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> *  which is neither derived from nor based on this library. If you modify this</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> *  library, you may extend this exception to your version of the library, but you</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> *  are not obligated to do so. If you do not wish to do so, delete this exception</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> *  statement from your version.</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *  Copyright 2015 Daqri, LLC.</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> *  Copyright 2010-2015 ARToolworks, Inc.</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> *  Author(s): Philip Lamb, Julian Looser.</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#ifndef ARCONTROLLER_H</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define ARCONTROLLER_H</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_platform_8h.html">ARWrapper/Platform.h</a>&gt;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;AR/ar.h&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="preprocessor">#include &lt;AR/arMulti.h&gt;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &lt;AR/video.h&gt;</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_image_8h.html">ARWrapper/Image.h</a>&gt;</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_video_source_8h.html">ARWrapper/VideoSource.h</a>&gt;</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_a_r_marker_8h.html">ARWrapper/ARMarker.h</a>&gt;</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_a_r_marker_square_8h.html">ARWrapper/ARMarkerSquare.h</a>&gt;</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="_a_r_marker_multi_8h.html">ARWrapper/ARMarkerMulti.h</a>&gt;</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#if HAVE_NFT</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#  include &lt;AR2/tracking.h&gt;</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="preprocessor">#  include &lt;KPM/kpm.h&gt;</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#  include &lt;<a class="code" href="_a_r_marker_n_f_t_8h.html">ARWrapper/ARMarkerNFT.h</a>&gt;</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor">#include &lt;math.h&gt;</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor">#if !defined(_WINRT)</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#  include &lt;pthread.h&gt;</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#  define pthread_mutex_t               CRITICAL_SECTION</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#  define pthread_mutex_init(pm, a)     InitializeCriticalSectionEx(pm, 4000, CRITICAL_SECTION_NO_DEBUG_INFO)</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#  define pthread_mutex_lock(pm)        EnterCriticalSection(pm)</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#  define pthread_mutex_unlock(pm)      LeaveCriticalSection(pm)</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#  define pthread_mutex_destroy(pm)     DeleteCriticalSection(pm)</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define PAGES_MAX 64</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="class_a_r_controller.html">   82</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_a_r_controller.html" title="Wrapper for ARToolKit functionality.">ARController</a> {</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">#pragma mark Private types and instance variables</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor"></span>    <span class="comment">// ------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="comment">// Private types and instance variables.</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="comment">// ------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keyword">typedef</span> <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;                NOTHING_INITIALISED,                    </div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                BASE_INITIALISED,                               </div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                WAITING_FOR_VIDEO,                              </div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                DETECTION_RUNNING                               </div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;        } ARToolKitState;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        ARToolKitState state;                           </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordtype">bool</span> stateWaitingMessageLogged;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keywordtype">char</span>* versionString;                            </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <a class="code" href="class_video_source.html" title="Base class for different video source implementations.">VideoSource</a> *m_videoSource0;          </div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <a class="code" href="class_video_source.html" title="Base class for different video source implementations.">VideoSource</a> *m_videoSource1;          </div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    pthread_mutex_t m_videoSourceLock;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordtype">bool</span> m_videoSourceIsStereo;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordtype">int</span> m_videoSourceFrameStamp0;</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordtype">int</span> m_videoSourceFrameStamp1;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="comment">// Virtual environment parameters.</span></div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        ARdouble m_projectionNearPlane;         </div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        ARdouble m_projectionFarPlane;          </div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        ARdouble m_projectionMatrix0[16];       </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        ARdouble m_projectionMatrix1[16];       </div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordtype">bool</span> m_projectionMatrixSet;                     </div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <span class="comment">// ARToolKit configuration. These allow for configuration prior to starting ARToolKit.</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keywordtype">int</span> threshold;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;    AR_LABELING_THRESH_MODE thresholdMode;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keywordtype">int</span> imageProcMode;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordtype">int</span> labelingMode;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    ARdouble pattRatio;</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordtype">int</span> patternDetectionMode;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;    AR_MATRIX_CODE_TYPE matrixCodeType;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keywordtype">bool</span> debugMode;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    std::vector&lt;ARMarker *&gt; markers;    </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="keywordtype">bool</span> doMarkerDetection;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <span class="comment">// ARToolKit data.</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;        ARHandle *m_arHandle0;                          </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        ARHandle *m_arHandle1;                          </div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        ARPattHandle *m_arPattHandle;                   </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        AR3DHandle *m_ar3DHandle;                   </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    ARdouble m_transL2R[3][4];</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    AR3DStereoHandle *m_ar3DStereoHandle;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">#if HAVE_NFT</span></div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="preprocessor"></span>    <span class="keywordtype">bool</span> doNFTMarkerDetection;</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    <span class="keywordtype">bool</span> m_nftMultiMode;</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="keywordtype">bool</span> m_kpmRequired;</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    <span class="keywordtype">bool</span> m_kpmBusy;</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="comment">// NFT data.</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    THREAD_HANDLE_T     *trackingThreadHandle;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    AR2HandleT          *m_ar2Handle;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    KpmHandle           *m_kpmHandle;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    AR2SurfaceSetT      *surfaceSet[PAGES_MAX]; <span class="comment">// Weak-reference. Strong reference is now in ARMarkerNFT class.</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor"></span>    </div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordtype">int</span> m_error;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keywordtype">void</span> setError(<span class="keywordtype">int</span> error);</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="preprocessor">#pragma mark Private methods.</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor"></span>    <span class="comment">// ------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    <span class="comment">// Private methods.</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="comment">// ------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keywordtype">void</span> lockVideoSource();</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    <span class="keywordtype">void</span> unlockVideoSource();</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    </div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="comment">// Internal marker management.</span></div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    </div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="keywordtype">bool</span> addMarker(<a class="code" href="class_a_r_marker.html" title="Base class for supported marker types.">ARMarker</a>* marker);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordtype">bool</span> removeMarker(<a class="code" href="class_a_r_marker.html" title="Base class for supported marker types.">ARMarker</a>* marker);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        </div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    <span class="comment">// Convenience initialisers.</span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <span class="comment">//</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    <span class="keywordtype">bool</span> initAR(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor">#if HAVE_NFT</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="preprocessor"></span>    <span class="keywordtype">bool</span> unloadNFTData(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordtype">bool</span> loadNFTData(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="keywordtype">bool</span> initNFT(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor">#pragma mark Public API</span></div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor"></span>    <span class="comment">// ------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="comment">// Public API</span></div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="comment">// ------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    </div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;        <a class="code" href="class_a_r_controller.html#ac6bad81c8658f7556d67abf920a85d0e" title="Constructor.">ARController</a>();</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;    </div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <a class="code" href="class_a_r_controller.html#a7041c62d2f0eda246ecce703028ea90c" title="Destructor.">~ARController</a>();</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;        </div>
<div class="line"><a name="l00205"></a><span class="lineno"><a class="code" href="class_a_r_controller.html#a54f0849f06076cd96311c48f25c2b58b">  205</a></span>&#160;        <span class="keyword">static</span> <a class="code" href="_platform_8h.html#a4d175bf9baf646649f851fc1508bb4ef">PFN_LOGCALLBACK</a> <a class="code" href="class_a_r_controller.html#a54f0849f06076cd96311c48f25c2b58b" title="Callback where log messages are passed to.">logCallback</a>;             </div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> logvBuf(va_list args, <span class="keyword">const</span> <span class="keywordtype">char</span>* format, <span class="keywordtype">char</span> **bufPtr, <span class="keywordtype">int</span>* lenPtr);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> logvWriteBuf(<span class="keywordtype">char</span>* buf, <span class="keywordtype">int</span> len, <span class="keyword">const</span> <span class="keywordtype">int</span> logLevel);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#a33e443e6b1d71770bcc2ed22f907bf54">logv</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> logLevel, <span class="keyword">const</span> <span class="keywordtype">char</span>* format, ...);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#a33e443e6b1d71770bcc2ed22f907bf54">logv</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* msg, ...);</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_a_r_controller.html#ac9def91f09d79a2f0e8a5aed2e4756f4" title="Returns a string containing the ARToolKit version, such as &quot;4.5.1&quot;.">getARToolKitVersion</a>();</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#ae3eef04a6533f0eb8b44e906cc2acb7b">getError</a>();</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    </div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a3285a4ebb27a47d45d64428969e30ea4" title="Start marker management so markers can be added and removed.">initialiseBase</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> patternSize = AR_PATT_SIZE1, <span class="keyword">const</span> <span class="keywordtype">int</span> patternCountMax = AR_PATT_NUM_MAX);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#ae91364105968f34d3a79577237cbd5af" title="Report whether a marker can be added.">canAddMarker</a>();</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    </div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#ab63641c43919f8297ba38a0ee9ce3253">setProjectionNearPlane</a>(<span class="keyword">const</span> ARdouble <a class="code" href="class_a_r_controller.html#a6107f783d52887d655bd571ac906421c">projectionNearPlane</a>);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#a15aa6c50cd138d4131bbed2517498927">setProjectionFarPlane</a>(<span class="keyword">const</span> ARdouble <a class="code" href="class_a_r_controller.html#a290ba1cd38c6a7e38104af03cfe33c88">projectionFarPlane</a>);</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    ARdouble <a class="code" href="class_a_r_controller.html#a6107f783d52887d655bd571ac906421c">projectionNearPlane</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    ARdouble <a class="code" href="class_a_r_controller.html#a290ba1cd38c6a7e38104af03cfe33c88">projectionFarPlane</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a418d8aaf7e0561d1ccfffc7d35a840cf" title="Start video capture and marker detection.">startRunning</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* vconf, <span class="keyword">const</span> <span class="keywordtype">char</span>* cparaName, <span class="keyword">const</span> <span class="keywordtype">char</span>* cparaBuff, <span class="keyword">const</span> <span class="keywordtype">long</span> cparaBuffLen);</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;        </div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#abd0732b11285bc113134d1b891a361f2" title="Start stereo video capture and marker detection.">startRunningStereo</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* vconfL, <span class="keyword">const</span> <span class="keywordtype">char</span>* cparaNameL, <span class="keyword">const</span> <span class="keywordtype">char</span>* cparaBuffL, <span class="keyword">const</span> <span class="keywordtype">long</span> cparaBuffLenL,</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                            <span class="keyword">const</span> <span class="keywordtype">char</span>* vconfR, <span class="keyword">const</span> <span class="keywordtype">char</span>* cparaNameR, <span class="keyword">const</span> <span class="keywordtype">char</span>* cparaBuffR, <span class="keyword">const</span> <span class="keywordtype">long</span> cparaBuffLenR,</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;                            <span class="keyword">const</span> <span class="keywordtype">char</span>* transL2RName, <span class="keyword">const</span> <span class="keywordtype">char</span>* transL2RBuff, <span class="keyword">const</span> <span class="keywordtype">long</span> transL2RBuffLen);</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        </div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;<span class="preprocessor">#if TARGET_PLATFORM_ANDROID</span></div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;<span class="preprocessor"></span>    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#af395f42727daace4e25f3e26a1d77c33">videoAcceptImage</a>(JNIEnv* env, jobject obj, <span class="keyword">const</span> <span class="keywordtype">int</span> videoSourceIndex, jbyteArray pinArray, jint width, jint height, jint cameraIndex, jboolean cameraIsFrontFacing);</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;<span class="preprocessor"></span>    </div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#ae504ee5e5ac8dea6f044f7f96f472cdb" title="Reports width, height and pixel format of a video source.">videoParameters</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> videoSourceIndex, <span class="keywordtype">int</span> *width, <span class="keywordtype">int</span> *height, AR_PIXEL_FORMAT *pixelFormat);</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    </div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a5f83904a7c899ebb9b178c183d413d23" title="Returns true if video capture and marker detection is running.">isRunning</a>();</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;    </div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a889dbbe581e771d1f4f2e28fad3f686b" title="Video capture and marker detection stops, but markers are still valid and can be configured.">stopRunning</a>();</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#ac3aad1d57eb54ef10ecdd57562fad461" title="Stop, if running.">shutdown</a>();</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a1bd0e559ff4189242b55bea8c7c3fd5f" title="Populates the provided array with the ARToolKit projection matrix.">getProjectionMatrix</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> videoSourceIndex, ARdouble proj[16]);</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    </div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        <span class="keywordtype">int</span> addMarker(<span class="keyword">const</span> <span class="keywordtype">char</span>* cfg);</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;        <span class="keywordtype">bool</span> removeMarker(<span class="keywordtype">int</span> UID);</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        </div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#adcb3dddd6987c1c774ab2a8f3d2b50db" title="Clears the collection of markers.">removeAllMarkers</a>();</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#a9f5722eb08efd97bfc452659110d29e0" title="Returns the number of currently loaded markers.">countMarkers</a>();</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        <a class="code" href="class_a_r_marker.html" title="Base class for supported marker types.">ARMarker</a>* <a class="code" href="class_a_r_controller.html#a586656329ba632f9f84cee4045fc6ff3" title="Searches the collection of markers for the given ID.">findMarker</a>(<span class="keywordtype">int</span> UID);</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;        </div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#ac26f04fb95670b8d2023f52f69df55ac">capture</a>();</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    </div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a3a39007194f7a2dd42e81f393cf588d8" title="Asks the video source to push the most recent frame into the passed-in buffer.">updateTexture</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> videoSourceIndex, <a class="code" href="struct_color.html" title="Simple color representation using four float values.">Color</a>* buffer);</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    </div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#ac580d4ef4f76a38b6dd06322ae645e34" title="Asks the video source to push the most recent frame into the passed-in buffer.">updateTexture32</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> videoSourceIndex, uint32_t *buffer);</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    </div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;<span class="preprocessor">#ifndef _WINRT</span></div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a5d6c658c56c5c839a77e03dd85f1e2d6" title="Asks the video source to push the most recent frame into the OpenGL texture with the passed-in ID/nam...">updateTextureGL</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> videoSourceIndex, <span class="keyword">const</span> <span class="keywordtype">int</span> textureID);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;<span class="preprocessor">#endif // !_WINRT</span></div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#ac726b34aac45206f4608e9a15875db82" title="Performs marker detection and updates all markers.">update</a>();</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#a4287d63e3291a4bf0d6a24387895ea2d" title="Enables or disables debug mode in the tracker.">setDebugMode</a>(<span class="keywordtype">bool</span> debug);</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;    </div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#ac385b8f5be31e172a34e9aef3f3ac82a" title="Returns whether debug mode is currently enabled.">getDebugMode</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    </div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#ab80ab5239c37941427bcc51e382af178">setImageProcMode</a>(<span class="keywordtype">int</span> mode);</div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;    </div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#aa51e7898c99e5fac6658a5d6e594bce6">getImageProcMode</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;    </div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#a2c20dfcb712449a58bdc71c50b5ab63b" title="Sets the threshold value used for image binarization.">setThreshold</a>(<span class="keywordtype">int</span> thresh);</div>
<div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#a7106f4c7c2d4e4691900fdf2dd4a7dd6" title="Returns the current threshold value used for image binarization.">getThreshold</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;    </div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#a9b18e16d0c7d694b495614a332c9ae9e" title="Sets the thresholding mode to use.">setThresholdMode</a>(<span class="keywordtype">int</span> mode);</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;</div>
<div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#ac873cfc23a294a6ae6d339c946391e36" title="Returns the current thresholding mode.">getThresholdMode</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;        </div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#ae6ce742333a35487de8fa2a8ae5e507f" title="Sets the labeling mode to use.">setLabelingMode</a>(<span class="keywordtype">int</span> mode);</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    </div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#a9fa24578408ae5a2d1b4cb215b5c5c32" title="Returns the current labeling mode.">getLabelingMode</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;        </div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#aa25c5bef4b35ea189b1c5b3d82a48812">setPatternDetectionMode</a>(<span class="keywordtype">int</span> mode);</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;    </div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#a30a76aa6929b088f8a785593bad08d9e">getPatternDetectionMode</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#ad346222158ad690f071420d5fe1b5e4a">setPattRatio</a>(<span class="keywordtype">float</span> ratio);</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;    </div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    <span class="keywordtype">float</span> <a class="code" href="class_a_r_controller.html#a17c3ba43ab7ffd6713f30b699539cbf1">getPattRatio</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    </div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#a38ae06d947f7995156bcb30155d01d29">setMatrixCodeType</a>(<span class="keywordtype">int</span> type);</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;    </div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_a_r_controller.html#a2fc4ed6f4135d4cb07b2de19e820b418">getMatrixCodeType</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;    </div>
<div class="line"><a name="l00477"></a><span class="lineno">  477</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_a_r_controller.html#abceb36df8bacdaceaab8b234a3c56f29">setNFTMultiMode</a>(<span class="keywordtype">bool</span> on);</div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;    </div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a1de2d0e95a6827a4bcbedbc6e24df079">getNFTMultiMode</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;</div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a8278aebc7233d808ce3742462fa4da71" title="Populates the provided color buffer with the current contents of the debug image.">updateDebugTexture</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> videoSourceIndex, <a class="code" href="struct_color.html" title="Simple color representation using four float values.">Color</a>* buffer);</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a6bc7b12b0b3fa9a1ee1fa638abe21030" title="Populates the provided buffer with the current contents of the debug image.">updateDebugTexture32</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> videoSourceIndex, uint32_t* buffer);</div>
<div class="line"><a name="l00498"></a><span class="lineno">  498</span>&#160;</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a92b12f11df6aa75041ff1c4a2a4095b4" title="Populates the provided color buffer with the image for the specified pattern.">getPatternImage</a>(<span class="keywordtype">int</span> patternID, <a class="code" href="struct_color.html" title="Simple color representation using four float values.">Color</a>* buffer);</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;    </div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="class_a_r_controller.html#a3982e9c73c04403940f6de22dceafbbc" title="Loads an optical parameters structure from file or from buffer.">loadOpticalParams</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *optical_param_name, <span class="keyword">const</span> <span class="keywordtype">char</span> *optical_param_buff, <span class="keyword">const</span> <span class="keywordtype">long</span> optical_param_buffLen, ARdouble *fovy_p, ARdouble *aspect_p, ARdouble m[16], ARdouble p[16]);</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;    </div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;};</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;<span class="preprocessor">#endif // !ARCONTROLLER_H</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Mar 23 2016 17:24:25 for ARWrapper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
